#ifndef PLACE_H
#define PLACE_H

#include <QGraphicsItem>
#include <QBrush>

class Place : public QGraphicsItem
{
    QBrush _color;
    int _col;
    int _row;
public:
    Place(int row, int col);

    int col() { return _col; }
    int row() { return _row; }

    virtual QRectF boundingRect() const;
    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

    void setColor(QBrush color) { _color = color; }

protected:
    virtual void dragEnterEvent(QGraphicsSceneDragDropEvent *event);
};

#endif // PLACE_H
